package com.cloudloan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudloan.common.R;
import com.cloudloan.entity.User;
import org.springframework.transaction.annotation.Transactional;

public interface LoginServcie  extends IService<User> {
    /**
     * 登录验证
     * @param user
     * @return
     */
    R login(User user);

    /**
     *退出登录
     */
    R logout();

    /**
     * 注册
     * @param user
     * @return
     */
    R sava(User user);

    /**
     * 查询
     * @param id
     * @return
     */
    R selectId(Long id);

    /**
     * 修改
     * @param user
     * @return
     */
    R updateId(User user);
}
